﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Menulink> list = v.data("list") as List<Menulink>; %>

<%if (list.Count > 0){ %>
<% foreach (Menulink row in list){ %>
<div class="infolist" title="<%=row.menuname %>" <%if (bllPowerGroupService.powercheck("system", "menulinkedit", modelpowergroup)){ %>onselectstart="return false;" ondblClick="javascript:parent.onbotton('<%=row.menuname %>-_{setedit_botton}','Menu/MenuLinkUpdate.aspx?Id=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="3%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>" /></td>
			<td width="6%"><input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>" /><input type="text" name="pid" size="1" value="<%=row.pid %>" class="infoInput" style="width:25px;"  onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}" /></td>
			<td width="6%"><%=row.Id %></td>
			<td width="30%"><%=row.menuname %></td>
			<td width="25%"><%=row.loadfun %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
                        <%if(row.isshow==1){ %>
						<td><span class="audit_ok" title="_{article_audit_ok}"></span></td>
                        <%}else{ %>
                        <td><span class="audit_no" title="_{article_audit_no}"></span></td>
                        <%} %>
					</tr>
				</table>
			</td>
			<td width="20%" id="infotype">
                <%if (bllPowerGroupService.powercheck("system", "menulinkedit", modelpowergroup)){ %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
                      <%if (ctx.get("loadfun") == "menulinklist"){ %>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<%=row.menuname %>_{viewfield_botton}','#{view}?loadfun=menulinkclist&mlid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'typelist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="typelist<%=row.Id %>" href="#body" title="_{viewfield_botton}" hidefocus="true">_{viewfield_botton}</a></td>
				      <%} %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('<%=row.menuname %>-_{setedit_botton}','Menu/MenuLinkUpdate.aspx?Id=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="<%=row.menuname %>_{setedit_botton}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
			     </table>
                <%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>